package com.juku2024.juku.db.dao;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;

import com.juku2024.juku.db.entity.AlbumModel;

@Dao
public interface AlbumDao {

    @Query("SELECT * FROM album WHERE id=:id")
    AlbumModel query(long id);

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insert(AlbumModel adContent);

    @Query("DELETE FROM album WHERE id=:id")
    void delete(long id);

    @Query("DELETE FROM album")
    void deleteAll();

}
